package com.zongxingh.falcon.logger.common;

import com.zongxingh.falcon.logger.constant.LoggerLevel;

/**
 * Introduction:  简单的日志实体，用于对用户发送的消息进行封装
 * Package Name:  com.zongxingh.falcon.logger.writer.impl
 * Project Name:  falcon-logger
 * Author:  zongxingh
 * Email： zongxingh@163.com
 * Tel: 157*****778
 * Create Time:  2020/10/26 22:09
 */
public class SimpleLog {

    private LoggerLevel level;
    private String threadName;
    private long threadId;
    private String logText;
    private String timeStamp;
    private String hostIp;
    private String className;
    private String topic;

    public SimpleLog(){}

    public SimpleLog(String topic, LoggerLevel level, String logText){
        this.topic = topic;
        this.level = level;
        this.logText = logText;
    }

    public LoggerLevel getLevel() {
        return level;
    }

    public void setLevel(LoggerLevel level) {
        this.level = level;
    }

    public String getThreadName() {
        return threadName;
    }

    public void setThreadName(String threadName) {
        this.threadName = threadName;
    }

    public long getThreadId() {
        return threadId;
    }

    public void setThreadId(long threadId) {
        this.threadId = threadId;
    }

    public String getLogText() {
        return logText;
    }

    public void setLogText(String logText) {
        this.logText = logText;
    }

    public String getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(String timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getHostIp() {
        return hostIp;
    }

    public void setHostIp(String hostIp) {
        this.hostIp = hostIp;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }
}
